package Servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

//@WebServlet("/cont/reg")
public class Register extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        doPost(req,resp);
    }

    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//        ServletContext context = req.getServletContext();
        /*HttpSession session = req.getSession();

        String req_user = req.getParameter("user");
        String req_pwd = req.getParameter("pwd");

        System.out.println(req_user);
        System.out.println(req_pwd);

        session.setAttribute("user",req_user);
        session.setAttribute("pwd",req_pwd);

        resp.sendRedirect("/javaweb/cont/login.jsp");*/
    }
}
